package MessagePacks;

import java.io.Serializable;

/**
 *@author Juan Alapin - 324507516
 *@author Giora Yaffe - 036551281
 *@author Shachar Gritzman - 300174026
 *@author Nir Porat - 021515580
*/

public class MessagePack implements Serializable
{

	
	private static final long serialVersionUID = 1L;
	public static final int login=1;
	public static final int logout=2;
	public static final int AddNewProcess=3;
	public static final int process=4;
	public static final int Detsupervisor=5;
	public static final int getAllWorkers = 6;
	public static final int freeze = 7;
	public static final int unfreeze = 8;
	public static final int updateStatus =9;
	public static final int updateSupervisor =10;
	public static final int updateEstimator =11;
	public static final int getProcWaitingConf =12;
	public static final int getProcess = 13; 
	public static final int estimationtime = 14;
	public static final int getDifferentUsers=15;
	public static final int getCommittee=16;
	public static final int updresponsible = 17;
	public static final int messageNotification = 18;
	public static final int changeComMember = 19;
	public static final int updatePhase=20;
	public static final int traceProcess = 21;
	public static final int getEsReport=22;
	public static final int getEsReportsMem1 =23;
	public static final int getEsReportsMem2 =24;
	public static final int sendreport = 25;
	public static final int getTime = 26;
	public static final int updateleveltime = 27; 
	public static final int setTester = 28; 
	public static final int testfailreport= 29;
	public static final int memApproveEstReportRead=30;
	public static final int checkAllReadEstReport=31;
	public static final int getAllReports=32;
	public static final int getworkerslist=33;
	public static final int deleteEsReport=34;
	public static final int updateUnsusDate =35;
	public static final int updateExecLeader =37;
	public static final int getAllRequests=36;
	public static final int getAllprocess=38;
	public static final int getAllRoles = 39;
	public static final int getReqFile = 40;
	public static final int updateExecTimeFlag = 41;
	public static final int createNewTimeExec = 42;
	public static final int getExtensionRequest = 43;
	public static final int getStatData = 44;
	public static final int addTimeExtension = 45;
	public static final int getAllProcOfSup=46;
	public static final int getSumOfexte=47;
	public static final int getCountOfPref=48;
	public static final int gettimeleft=49;
	public static final int checkTimeExc=50;
	public final int OpCode;
	
	
	/**
	 * 
	 * @param op - Operation code
	 */
	public MessagePack(int op)
	{
	OpCode=op;
	}
	
	public int  getOpCode()
	{
		return OpCode;
		
	}
}
